package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 添加口味
     * @param flavors
     */
    void insertDishFlavor(@Param("flavors") List<DishFlavor> flavors);

    /**
     * 删除与被删除菜品绑定的口味
     * @param ids
     */
    void deleteDishFlavor(@Param("ids") List<Long> ids);

    /**
     * 根据Id查询口味
     * @param id
     * @return
     */
    List<DishFlavor> selectDishFlavorById(@Param("dishId") Long id);
}
